//
//  QDWebViewController.h
//  QDMetroClient
//
//  Created by YueWen on 2019/2/24.
//  Copyright © 2019 YueWen. All rights reserved.
//

#import "RITLWebViewController.h"
#import <WebViewJavascriptBridge/WebViewJavascriptBridge.h>

NS_ASSUME_NONNULL_BEGIN

/// 青岛地铁的网页浏览控制器
@interface QDWebViewController : RITLWebViewController

/// 文章id
@property (nonatomic, copy, nullable) NSString *identifier;


/// 是否支持分享
@property (nonatomic, assign)BOOL shouldShare;
/// 分享的标题
@property (nonatomic, copy) NSString *shareTitle;
/// 分享的描述
@property (nonatomic, copy, nullable) NSString *shareDesc;
/// 分享的图片url
@property (nonatomic, copy, nullable) NSString *shareImageUrl;


/// 用于webView的交互
@property (nonatomic, strong) WebViewJavascriptBridge *bridge;

/// 导航返回
@property (nonatomic, strong, readonly, nullable)NSString *backIndicatorImageName;

#pragma mark 以下方法均为H5调用本地时所需方法

- (void)thumbupClick:(NSString *)mid;
- (void)favoriteClick:(NSString *)mid;
- (void)handleCustomAction:(NSString *)mid;
- (void)loginForH5;
- (void)agreementForH5;

@end

NS_ASSUME_NONNULL_END
